package org.model;

import java.util.Date;

/**
 * Created by lijie on 2018/8/13
 */
public class Member extends BaseEntity {

    private String mobileNo;
    private String email;

    private String userName;
    private String loginName;
    private String password;

    // 第三方登录之微信信息
    private String wxUid;
    private String wxName;
    private String wxGender;
    private String wxIconurl;

    // 是否付费用户
    private Boolean payFlag;
    // 当前使用的卡
    private Long cardId;

    // 上一次登录时间; 登录次数
    private Date lastLogin;
    private Integer loginTimes;

    private Integer type;           // 用户类型

    public enum properties {
        ID("id"),
        MOBILE_NO("mobileNo"),
        EMAIL("email"),
        WX_UID("wxUid"),
        WX_NAME("wxName"),
        PAY_FLAG("payFlag"),
        TYPE("type")
        ;

        private String paramter;

        properties(String paramter) {
            this.paramter = paramter;
        }
        public String toString() {
            return this.paramter;
        }
    }

    public enum TypeEnum {

        MEMBER(1, "普通会员"),
        AGENT(2, "代理用户");

        private Integer type;
        private String desc;

        TypeEnum(Integer type, String desc) {
            this.type = type;
            this.desc = desc;
        }

        public Integer getType() {
            return this.type;
        }

        public String getDesc(){
            return this.desc;
        }

    }

    public String getMobileNo() {
        return mobileNo;
    }

    public void setMobileNo(String mobileNo) {
        this.mobileNo = mobileNo;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Long getCardId() {
        return cardId;
    }

    public void setCardId(Long cardId) {
        this.cardId = cardId;
    }

    public Date getLastLogin() {
        return lastLogin;
    }

    public void setLastLogin(Date lastLogin) {
        this.lastLogin = lastLogin;
    }

    public Integer getLoginTimes() {
        return loginTimes;
    }

    public void setLoginTimes(Integer loginTimes) {
        this.loginTimes = loginTimes;
    }

    public Boolean getPayFlag() {
        return payFlag;
    }

    public void setPayFlag(Boolean payFlag) {
        this.payFlag = payFlag;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getWxUid() {
        return wxUid;
    }

    public void setWxUid(String wxUid) {
        this.wxUid = wxUid;
    }

    public String getWxName() {
        return wxName;
    }

    public void setWxName(String wxName) {
        this.wxName = wxName;
    }

    public String getWxGender() {
        return wxGender;
    }

    public void setWxGender(String wxGender) {
        this.wxGender = wxGender;
    }

    public String getWxIconurl() {
        return wxIconurl;
    }

    public void setWxIconurl(String wxIconurl) {
        this.wxIconurl = wxIconurl;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

}
